<template>
  <div class="product-list">
    <router-link
    tag="div"
    :to="{ name: 'TalentsDetails', params: { id: item } }"
      class="list-item"
      v-for="item in TanlentsComponData"
      :key="item.id"
    >
      <div class="img">
        <img :src="item.url" alt="" />
      </div>
      <div class="info">
        <p class="pro-title">{{ item.uname }}</p>
        <div class="job">{{ item.job }}</div>
        <p class="jobYaer">工作经验：{{ item.experience }}年</p>
        <p class="price">{{ item.price }}元/月</p>
        <p class="desc">"{{ item.desc }}"</p>
      </div>
    </router-link>
  </div>
</template>

<script>
export default {
  name: "TanlentsCompon",
  props: {
    TanlentsComponData: {
      type: Array,
      defalut: [],
    },
  },
  mounted() {
    // console.log(this.productData);
  },
};
</script>

<style lang="less" scoped>
// 产品
.product-list {
  width: 100%;
  padding-bottom: 34px;
  .list-item {
    height: 124px;
    border: 1px solid #eee;
    padding: 11.5px 11px;
    box-sizing: border-box;
    display: flex;
    .img {
      width: 80px;
      height: 100px;
      margin-right: 11px;
      img {
        width: 100%;
        height: 100%;
      }
    }
    .info {
      width: 200px;
      position: relative;
      .job {
        padding: 0 5px;
        border: 1px solid purple;
        position: absolute;
        top: 8px;
        left: 66px;
        border-radius: 3px;
        color: purple;
      }
      .pro-title {
        width: 196px;
        height: 23px;
        line-height: 20px;
        color: rgba(16, 16, 16, 1);
        font-size: 19px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        margin: 8px 0 5px;
        font-weight: 700;
      }
      .jobYaer {
        font-size: 15px;
        color: #777;
      }
      .desc {
        // width: 200px;
        height: 34px;
        line-height: 17px;
        color: rgba(153, 153, 153, 1);
        font-size: 12px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }
    }
  }
}
.price {
  width: 72px;
  height: 23px;
  line-height: 20px;
  color: rgba(255, 68, 68, 1);
  font-size: 14px;
  text-align: center;
  margin-top: 5px;
}
</style>